<!DOCTYPE html>
<html class="no-js">
<head lang="en">

    <#include "../head_import.html" />

</head>
<body>
<#include "../include/top_nav.html">
    <div class="am-cf admin-main">

        <!-- sidebar start -->
        <#include "../config/left.html">
            <!-- sidebar end -->
            <!-- content start-->
            <div class="admin-content">
                <div class="am-cf am-padding">
                    <div class="am-fl am-cf"><@s.m "global.position"/>:  <@s.m "admin.function"/> - <@s.m "global.edit"/></div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <form class="ropt">
                            <input type="button" value="<@s.m "global.backToList"/>" onclick="history.back();"/>
                        </form>
                        <div class="clear"></div>
                    </div>
                </div>
                <div class="am-g">
                    <div class="am-u-sm-12 am-u-sm-centered">
                        <#assign errorEmailExist><@s.m "error.emailExist"/></#assign>
                        <@p.form id="baseForm" action="o_update.do" labelWidth="12">
                        <@p.td colspan="1" width="50" label="admin.username">${admin.username}</@p.td>
                    <@p.text colspan="1" width="50" label="admin.email" name="email" value=admin.email rvalue=admin.email required="true" vld="{required:true,email:true,rangelength:[3,100],remote:'check_email.do',messages:{remote:'${errorEmailExist}'}}"/><@p.tr/>
                    <@p.password colspan="1" width="50" label="admin.password" id="password" name="password" minlength="3" maxlength="32" help="admin.password.help"/>
                    <@p.password colspan="1" width="50" label="admin.passwordAgain" id="passwordAgain" equalTo="#password" maxlength="100"/><@p.tr/>
                    <@p.text colspan="1" width="50" label="admin.fullname" name="firstname" value=admin.firstname maxlength="100"/>
                    <@p.radio colspan="1" width="50" label="admin.disabled" name="disabled" value=admin.disabled list={"true":"global.true","false":"global.false"}/><@p.tr/>
                    <@p.radio colspan="2" width="50" label="只读管理员" name="viewonlyAdmin" value=admin.viewonlyAdmin list={"true":"global.true","false":"global.false"} required="true" help="用于后台演示"/><@p.tr/>
                    <@p.checkboxlist colspan="2" label="角色" name="roleIds" valueList=roleIds list=roleList listKey="id" listValue="name" onclick="checkedThis(this);"/><@p.tr/>
                    <@p.td colspan="2"><@p.hidden name="id" value=admin.id/><@p.submit code="global.submit"/> &nbsp; <@p.reset code="global.reset"/></@p.td>
            </@p.form>
            </div>
    </div>



    </div>

    </div>

</body>
</html>